﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NLog;

namespace PersonaLibrary.Tracer
{
	class NLoggerFacade : ILogFacade
	{
		private static readonly Logger Logger = LogManager.GetCurrentClassLogger();

		public void Debug(string message)
		{
			Logger.Debug(message);
		}

		public void Info(string message)
		{
			Logger.Info(message);
		}

		public void Warning(string message)
		{
			Logger.Warn(message);
		}

		public void Error(Exception error)
		{
			Logger.ErrorException(error.Message, error);
		}

		public void Fault(Exception error)
		{
			Logger.Fatal(error);
		}
	}
}
